$.ajaxSetup ({
	cache: false //close AJAX cache
});

//底部飘浮
var url = window.location.href;
if(url.indexOf("m=member") == -1){
	document.write('<div id="bt"></div>');
	$(document).ready(function(){
		$.getJSON("http://www.365inf.com/app/?m=member&a=menulist",function(json){
			$("#bt").html(json.html);
			scrollx({id:'f_b',f:1});
		});
	});
	//滚动底部导航
	setInterval(function(){
		$("#theNews li").last().clone(true).insertBefore($("#theNews li:first"));
		$("#theNews li").last().remove();
		$("#theNews li").first().slideDown("slow");
		$("#theNews li").last().slideUp();
	},4000);
} else {
}


//左侧在线客服
document.write('<div id="float" style="display:none;"><a href="http://wpa.qq.com/msgrd?v=3&uin=11405700&site=qq&menu=yes" target="_blank"><img border="0" src="/images/float.gif" /></a></div>');

$(document).ready(function(){
	float_init_l = -83;
	//浮动层初始top值
	float_init_t = $(window).height()-300;
	//浮动层left值
	float_l = 0;
	//浮动层top值
	float_t = $(window).height()-300;
	scrollx({id:'float',f:1,l:float_init_l,t:float_init_t});
	$("#float").show();
	$("#float").animate({left: float_l,top:float_t}, 500);
});

$(window).scroll(function (){ 
	scrollx({id:'f_b',f:1});
}); 
//google
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-23325489-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

//baidu
document.write('<div style="display:none;">');
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F5991a8b7d2aecf43d4d0a09633f329e1' type='text/javascript'%3E%3C/script%3E"));
document.write('</div>');

//google +
//document.write(unescape('%3Cscript type="text/javascript" src=" https://apis.google.com/js/plusone.js">{lang: "zh-CN"}%3C/script%3E'));

//分类
if (document.getElementById('columnList'))
{
	$("#all").hover(function(){$("#columnList").show()},function(){$("#columnList").hide()});
}



$("#bigbody").click(function(){
	$('#body').css('font-size','18px');
});
$("#smallbody").click(function(){
	$('#body').css('font-size','14px');
});

$(document).ready(function(){
	//图片延时加载
	//$("img").not(".nolazyload").lazyload({ 
	//	placeholder : "/images/grey.gif", //加载图片前的占位图片
	//	effect      : "fadeIn", //加载图片使用的效果(淡入)
	//	failurelimit : 10
	//})
});
/*
$(".imgno").lazyload({ 
	placeholder : "http://www.jo2.org/js/grey.gif", //加载图片前的占位图片
	//effect      : "fadeIn", //加载图片使用的效果(淡入)
	failurelimit : 10
})*/

